from rest_framework import viewsets

from .models import RepairLog
from .serializers import RepairLogSerializer


class RepairLogViewSet(viewsets.ModelViewSet):
    '''
    list: 查询所有RepairLog
    create: 新增RepairLog
    retrieve: 查询单个RepairLog, 文档名: read,接口名: retrieve
    update: 更新RepairLog
    destroy: 删除RepairLog
    '''
    queryset = RepairLog.objects.all()
    serializer_class = RepairLogSerializer

